/**
 * 对应管理员端模版模块
 */

package xiangmu.schoolpaper.controller.system;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xiangmu.schoolpaper.pojo.DTO.KeywordsQuery;
import xiangmu.schoolpaper.result.Result;
import xiangmu.schoolpaper.service.impl.system.TemplateChaptersServiceImpl;
import xiangmu.schoolpaper.service.impl.teacher.TemplateTypesServiceImpl;
//import xiangmu.schoolpaper.service.Impl.UploadFileToKimiServiceImpl;

import java.util.List;
import java.util.Map;


@Slf4j
@RestController
@RequestMapping("/system/template")
@Tag(name="查看/修改本学院所有模版的接口")
public class TemplateChaptersController {

    @Autowired
    private TemplateChaptersServiceImpl sysTemplateChaptersServiceImpl;


    @GetMapping("/getAllTemplateChapters")
    @Operation(summary = "根据模版ID查询模版章节")
    public Result getAllTemplateChapters(Integer templateId){
        log.info("根据模版ID查询模版章节");
        List<String> list = sysTemplateChaptersServiceImpl.getAllTemplateChapters(templateId);
        return Result.success(list);
    }

}
